import urllib2

for i in xrange(1, 19):
    s = str(i).zfill(2)
    url = 'http://www.bjfhry.com/fhweb/upload/bank/%s.jpg'
    req = urllib2.Request(url % s)
    web = urllib2.urlopen(req)
    data = web.read()
    f = open('images/' + s + '.jpg', 'w')
    f.write(data)
    f.close()
    web.close()